{include file="header.tpl"}
{if isset($info_action)}
	<div class="info i_{$info_color}">
		{$info_action}
	</div>
{/if}

<!-- DO POPRAWIENIA-->

<h3>{$title}</h3>

<div class="practices_div">
	<table class="practices_tab">
		<tr style="color:#789;font-weight: bold">
			<td>Lp.</td>
			<td>Imię</td>
			<td>Nazwisko</td>
			<td>Email</td>
			<td>Nazwa firmy</td>
			<td>Email firmy</td>
			<td width = "100px">Akcje</td>
		</tr>
		{if !empty($practice_queue)}
			{foreach item=pq from=$practice_queue name=practice}
			<tr style="background-color:{cycle values=#F6F6F6,white}">
				<td>{$smarty.foreach.practice.iteration}</td>
				<td>{$pq.student_name}</td>
				<td>{$pq.student_surname}</td>
				<td>{$pq.student_email}</td>
				<td>{$pq.name}</td>
				<td>{$pq.email}</td>
				<td>
					<a href ="student_practices.php?p_id={$pq.practice_id}&s_id={$pq.student_id}&d_id={$pq.id}" class="tip_trigger" ><span class="tip">Akceptuj praktykę.</span><img src="../images/tick.png"/></a>
					&nbsp
					<a href ="student_practices.php?delete_id={$pq.id}" class="tip_trigger" ><span class="tip">Usuń praktykę.</span><img src="../images/cross.png"/></a>
				</td>
			</tr>
			{/foreach}
		{else}
			<tr>
				<td colspan="7">Brak ofert praktyk do zaakceptowania</td>
			</tr>
		{/if}
	<table>
</div>

{include file="footer.tpl"}